import store from '@/store';
import requestPointStorm from '@/utils/requestPointStorm';

export function getPointStormRoundList({ currentPage = 1, showCount = 10 } = {}) {
  return requestPointStorm.get('/pointDice/pointDiceList', {
    params: {
      splid: store.state.liveId,
      currentPage: String(currentPage),
      showCount: String(showCount),
    },
  });
}

export function getPointStormRoundDetail({ diceId, currentPage = 1, showCount = 10 } = {}) {
  return requestPointStorm.get('/pointDice/pointInfo', {
    params: {
      splid: store.state.liveId,
      dice_id: diceId,
      currentPage: String(currentPage),
      showCount: String(showCount),
    },
  });
}
